package com.ypd.shop.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import com.ypd.common.annotation.Excel;
import com.ypd.common.core.domain.BaseEntity;

/**
 * 拍卖出价记录对象 tb_bid
 * 
 * @author lin
 * @date 2025-02-28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Bid extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 出价记录ID */
    private String bidId;

    /** 关联的拍卖品ID */
    @Excel(name = "关联的拍卖品ID")
    private String itemId;

    /** 出价用户ID */
    @Excel(name = "出价用户ID")
    private Long userId;

    /** 出价金额 */
    @Excel(name = "出价金额")
    private BigDecimal bidPrice;

    /** 出价时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")  // 增加时分秒
    @Excel(name = "出价时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date bidTime;

    /** 是否为自动出价（0:否 1:是） */
    @Excel(name = "是否为自动出价", readConverterExp = "0=:否,1=:是")
    private Integer isAutoBid;



}
